{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-block">
            <input id="c-username" lay-verify="required" class=" layui-input" name="row[username]" type="text" value="{$data.username}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">手机号</label>
        <div class="layui-input-block">
            <input id="c-phone" lay-verify="required" class=" layui-input" name="row[phone]" type="text" value="{$data.phone}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">公司</label>
        <div class="layui-input-block">
            <input id="c-company" lay-verify="required" class=" layui-input" name="row[company]" type="text" value="{$data.company}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">来源</label>
        <div class="layui-input-block">
            <input id="c-source" lay-verify="required" class=" layui-input" name="row[source]" type="text" value="{$data.source}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">接待员</label>
        <div class="layui-input-block">
            <input id="c-kefu" class=" layui-input" name="row[kefu]" type="text" value="{$data.kefu}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            {:Form::textarea('row[notes]',$data.notes)}
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">成交</label>
        <div class="layui-input-block">
            {:Form::radios('row[status]',[0=>'未成交', 1=>'已成交'],$data.status)}
        </div>
    </div>
    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
layui.use('yznForm', function() {
    var yznForm = layui.yznForm;
    yznForm.bindevent($("form.layui-form"));
});
</script>
{/block}